home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Experimental BBS Explossion 3
/
Experimental BBS Explossion III.iso
/
c
/
bc_pas_1.zip
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1992-12-10
|
2KB
|
98 lines
##
## Build file for VIDEO object modules for all model sizes
##
##
## To build a LARGE model, "nmake S=L M=4"
## To build a COMPACT model, "nmake S=C M=3"
## To build a MEDIUM model, "nmake S=M M=2"
## To build a SMALL model, "nmake S=S M=1"
## To build a TINY model, "nmake S=T M=0"
##
## The default is to build a small model.
!ifndef S
!ifdef BCC
S= s
M= 1
!else
S= S
M= 1
!endif
!endif
## The following are search paths
INC = ..\..\INC
GINC = ..\..\..\INC
LBO=
LBB= ..\..\inc
#############################################################################
## The following are command line options compiler, assembler selection
!ifdef BCC
## tools selection
IP=%include%
MA= tasm /i. /i$(INC) /i$(GINC) /JQUIRKS /JMASM51 /JNOSMART /m2
CL= bcc /I$(CINC)
LK= tlink
LB= tlib
CMOD= -m$(S)!
## switches
AS= -mx
AO= -DMODELSIZE=$(M)
CS= -c -Ox
CO= $(CMOD)
LO= /m
LS=
ONAM= -o
!else
## tools selection
MA= masm
CL= cl
LK= link
LB= lib
CMOD=-A$(S)
## switches
AS= /Mx
AO= /DMODELSIZE=$(M)
CS= /c /Ox /Zp1
CO= $(CMOD)
LO= /Ma
LS=
ONAM= -Fo
!endif
#############################################################################
!ifdef BCC
DEFAULT: $(LBB)\bv$(S)lib.lib
!else
DEFAULT: $(LBB)\mv$(S)lib.lib
!endif
$(S)video.obj: video.asm
$(MA) $(AO) $(AS) video,$(S)video;
!ifdef BCC
$(LBB)\bv$(S)lib.lib: $(S)video.obj
$(LB) $(LBO) $(LBB)\bv$(S)lib -+$(S)video.obj
!else
$(LBB)\mv$(S)lib.lib: $(S)video.obj
$(LB) $(LBO) $(LBB)\mv$(S)lib -+$(S)video.obj ,,$(LBB)\mv$(S)lib;
!endif